package com.tianheng.wanzhou.datacollecting.db.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author yjw
 * @since 2020-06-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("auto_package2")
public class AutoPackage2 extends Model<AutoPackage2> {

    private static final long serialVersionUID = 1L;

    /**
     * 设备ip
     */
    @TableId("machine_ip")
    private String machineIp;
    /**
     * 机台号
     */
    @TableField("mac_id")
    private String macId;

    /**
     * 公司
     */
    private Integer company;

    /**
     * 车间
     */
    private Integer workshop;

    /**
     * 拆垛机皮带线品种
     */
    @TableField("type_of_stacker_belt_line")
    private String typeOfStackerBeltLine;


    /**
     * 拆垛垛1品种
     */
    @TableField("stacker1_type")
    private String stacker1Type;

    /**
     * 拆垛垛2品种
     */
    @TableField("stacker2_type")
    private String stacker2Type;

    /**
     * 拆垛垛1已取层数
     */
    @TableField("stacker1_take_layer")
    private String stacker1TakeLayer;

    /**
     * 拆垛垛1已取列数
     */
    @TableField("stacker1_take_column")
    private String stacker1TakeColumn;

    /**
     * 拆垛垛2已取层数
     */
    @TableField("stacker2_take_layer")
    private String stacker2TakeLayer;

    /**
     * 拆垛垛2已取列数
     */
    @TableField("stacker2_take_column")
    private String stacker2TakeColumn;

    /**
     * 拆垛隔板垛已取层数
     */
    @TableField("stacker_take_layer")
    private String stackerTakeLayer;

    /**
     * 视觉检测1检测数量
     */
    @TableField("visual_inspection1_inspection_num")
    private String visualInspection1InspectionNum;

    /**
     * 视觉检测2检测数量
     */
    @TableField("visual_inspection2_inspection_num")
    private String visualInspection2InspectionNum;

    /**
     * 视觉检测1推出数量
     */
    @TableField("visual_inspection1_introduction_num")
    private String visualInspection1IntroductionNum;

    /**
     * 视觉检测2推出数量
     */
    @TableField("visual_inspection2_introduction_num")
    private String visualInspection2IntroductionNum;

    /**
     * 称重机推出数量
     */
    @TableField("quantity_of_weighing_machine")
    private String quantityOfWeighingMachine;

    /**
     * 封切机封切数量
     */
    @TableField("num_of_cutting_machine")
    private String numOfCuttingMachine;

    /**
     * 当前包重量
     */
    @TableField("current_package_weight")
    private String currentPackageWeight;

    /**
     * 当前班包数统计
     */
    @TableField("current_class_package_num")
    private String currentClassPackageNum;

    /**
     * 累计成包数
     */
    @TableField("cumulative_number_of_packages")
    private String cumulativeNumberOfPackages;


    @Override
    protected Serializable pkVal() {
        return this.machineIp;
    }

}
